package com.uduew.sjd.api;

import static com.uduew.sjd.config.Const.GET_ADDRESS;

import androidx.annotation.NonNull;

import com.hjq.http.config.IRequestApi;
import com.hjq.http.config.IRequestBodyStrategy;
import com.hjq.http.config.IRequestType;
import com.hjq.http.model.RequestBodyType;


public class GetAddressApi implements IRequestApi, IRequestType {

    private String overripe;

    public GetAddressApi(String theologist) {
        overripe = theologist;
    }

    @NonNull
    @Override
    public String getApi() {
        return GET_ADDRESS;
    }

    /**
     * 获取参数的提交类型
     */
    @NonNull
    @Override
    public IRequestBodyStrategy getBodyType() {
        return RequestBodyType.JSON;
    }


    public static final class AddressBean {
        private String beastly;
        private String tabasco;
        private String seric;
        private String giglot;
        private boolean amelia;
        private BioactivityBean bioactivity;

        public String getBeastly() {
            return beastly;
        }

        public String getTabasco() {
            return tabasco;
        }

        public String getSeric() {
            return seric;
        }

        public String getGiglot() {
            return giglot;
        }

        public boolean isAmelia() {
            return amelia;
        }

        public BioactivityBean getBioactivity() {
            return bioactivity;
        }
    }

    public static final class BioactivityBean {
        private String inflexibility;

        public String getInflexibility() {
            return inflexibility;
        }
    }

}


